<?php

require_once 'init.php';
require_once 'shop_common.php';

$hits = new Products('hits');
$smarty->assign('hits',$hits->getList());

$smarty->assign(
	'latestArticles',
	query2arrays("
		SELECT id,title
		FROM articles
		ORDER BY dt DESC
		LIMIT 4
	")
);

$smarty->display('index.tpl');

?>